public class Parent {
    static {
        System.out.println("Parent-static块");
    }

    {
        System.out.println("Parent-构造代码块--前");
    }
    public Parent()
    {
        System.out.println("Parent-无参构造函数");
    }
    public Parent(String c)
    {
        System.out.println("Parent-有参构造函数---"+c);
    }
    {
        System.out.println("Parent-构造代码块--后");
    }
}
